<?php $doctor = $appointment->getDoctor() ?>
<?php $doctorLocation = $appointment->getTimeSlot()->getLocation() ?>
<div class="appointment">
    <div class="row-1st">
        <div class="inline-block">
            <div class="photo">
                <a href="/<?php echo $doctor->getUser()->getSlug() ?>">
                    <?php include_partial("doctor_show/potrait", array("doctor" => $doctor, "height" => 96)) ?>
                </a>
            </div>
        </div>
        <div class="inline-block">
            <div class="info">
                <a href="/<?php echo $doctor->getUser()->getSlug() ?>" class="name-title">
                    <?php echo $doctor->getUser() ?> - MD                                             
                </a>
                <div class="rating">
                    <?php include_partial("doctor/rating_static", array("doctor" => $doctor, "doctorAverageRating" => $doctor->getAverageRating())) ?>                    
                </div>
                <div class="location-details">
                    <div class="street-address"><?php echo $doctorLocation->getStreetAddress() ?></div>
                    <div class="area"><?php echo $doctorLocation->getArea() ?></div>
                    <div class="post-code"><?php echo $doctorLocation->getPostCode() ?></div>
                </div>
            </div>
        </div>
    </div>
</div>         